package day10test;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        int smallCount = 0;
        int bigCount  = 0;
        int numberCount = 0;
        for (int i = 0; i < str.length(); i++) {
            char at = str.charAt(i);
            if (65<= at && at <= 90){

                bigCount++;
            }else if (97 <= at && at <= 122){

                smallCount++;
            }else if (48 <= at && at <= 57){

                numberCount++;
            }
        }
        System.out.println("小写字母出现了"+ smallCount + "次");
        System.out.println("大写字母出现了"+ bigCount + "次");
        System.out.println("数字出现了"+ numberCount + "次");
    }
}
